/*
 *  $Id: Undeath.cs 1051 2010-05-18 22:10:41Z thenn.erannor $
 *	This file is a part of Ragima CCG.
 *	(C) 2008 Ragima development group.
 *
 *	Licensed under the terms of the GNU GPL License version 2.
 *
 */

namespace Ragima.Cards001.Darkness.Spells {
    public class Undeath: TargetEnchantmentCard<Creature> {
        public Undeath(): base("001_d_s_undeath") {
            Level = CompleteLevel.ReadyForTest;
            Element = ElementType.Darkness;
            Value = 100;
            Target = new CreatureTarget(GetTargetPhrase(), true, true, CreatureTarget.IsLiving);
            AddManaCost(ElementType.Darkness, 2);
        }

        protected override EnchantmentAffect CreateEnchantment() {
            return new UndeathAffect();
        }

        private class UndeathAffect: EnchantmentAffect<Undeath> {
            public UndeathAffect() {
                Add(new Affects.Undead());
            }
        }
    }
}
